package com.csi.domain;

import lombok.Getter;

public class Result<T> implements IResult{

    private String message;

    private int code;

    @Getter
    private T t;


    public Result(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public Result(String message, int code, T t) {
        this.message = message;
        this.code = code;
        this.t = t;
    }

    public Result() {
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    public void setT(T t) {
        this.t = t;
    }
}
